package org.news.web.constant;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public final class UsersConstant {
    private UsersConstant(){

    }

    /**
     *  用户角色状态
     */
    private static final List<UsersStatus> USERS_ROLES = new ArrayList<UsersStatus>(
        Arrays.asList(
            new UsersStatus("用户",0,"primary"),
            new UsersStatus("创作者",1,"success")
        )
    );
    /**
     *  用户角色
     */
    public static final Long USERS_ROLE = 0l;

    /**
     *  用户角色
     */
    public static final Long CREATORS_ROLE = 1l;

    /**
     * 所在地选择
     */
    private static final List<String> SHEN_FEN = new ArrayList<>(
        Arrays.asList(
            "河北、山西、辽宁、吉林、黑龙江、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、海南、四川、贵州、云南、陕西、甘肃、青海、台湾、内蒙古、广西、西藏、宁夏、新疆、北京、天津、上海、重庆、香港、澳门".split("、")
        )
    );

    /**
     * 用户状态
     */
    private static final List<UsersStatus> USER_STATUS = new ArrayList<UsersStatus>(
        Arrays.asList(
            new UsersStatus("活跃",0,"primary"),
            new UsersStatus("停用",1,"info")
        )
    );

    /**
     * 停用
     */
    public static final long TY = 1l;

    /**
     * 活跃
     */
    public static final long HY = 0l;

    /**
     * 默认头像图片 ossid
     */
    private static String DF_HEAD_PT = "1773383116241551361";

    /**
     * 默认封面背景图片 ossid
     */
    private static String DF_BG_PT = "1773383615988678658";


    public static String DfHeadPt() {
        return DF_HEAD_PT;
    }

    public static String DfBgPt() {
        return DF_BG_PT;
    }

    public static List<UsersStatus> UsersRoles() {
        return USERS_ROLES;
    }

    public static List<UsersStatus> UserStatus() {
        return USER_STATUS;
    }

    public static List<String> ShenFen() {
        return SHEN_FEN;
    }

    public static Long CreatorsRole() {
        return CREATORS_ROLE;
    }

    public static Long UsersRole() {
        return USERS_ROLE;
    }

}
